package com.ruoyi.service;

import com.ruoyi.domain.BasisEquipmentInformationv;
import com.ruoyi.domain.ReturnDate;
import com.ruoyi.dto.BasisPositionEquipment;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 装备信息Service接口
 * 
 * @author ruoyi
 * @date 2025-05-24
 */
public interface IBasisEquipmentInformationvService 
{
    /**
     * 查询装备信息
     * 
     * @param id 装备信息主键
     * @return 装备信息
     */
    public BasisEquipmentInformationv selectBasisEquipmentInformationvById(Long id);

    /**
     * 查询装备信息列表
     * 
     * @param basisEquipmentInformationv 装备信息
     * @return 装备信息集合
     */
    public List<BasisEquipmentInformationv> selectBasisEquipmentInformationvList(BasisEquipmentInformationv basisEquipmentInformationv);

    /**
     * 新增装备信息
     * 
     * @param basisEquipmentInformationv 装备信息
     * @return 结果
     */
    public int insertBasisEquipmentInformationv(BasisEquipmentInformationv basisEquipmentInformationv);

    /**
     * 修改装备信息
     * 
     * @param basisEquipmentInformationv 装备信息
     * @return 结果
     */
    public int updateBasisEquipmentInformationv(BasisEquipmentInformationv basisEquipmentInformationv);

    /**
     * 批量删除装备信息
     * 
     * @param ids 需要删除的装备信息主键集合
     * @return 结果
     */
    public int deleteBasisEquipmentInformationvByIds(Long[] ids);

    /**
     * 删除装备信息信息
     * 
     * @param id 装备信息主键
     * @return 结果
     */
    public int deleteBasisEquipmentInformationvById(Long id);


    public List<ReturnDate> queryType (Long id);

    //查询 阵地中是否添加了 当前设备
    public List<BasisEquipmentInformationv> findByEquipmentTypeEquipmentModel (String equipmentType,String equipmentModel,String loadingId,Integer positionId);

    public boolean addBasisPositionEquipment(BasisPositionEquipment basisPositionEquipment);

    //根据案例和阵地查询设备
    public List<BasisEquipmentInformationv> findByPositionIdType( Integer positionId, String loadingId);


    boolean delBasisPositionEquipmentInformationv(String loadingId,Integer positionId);


    boolean delBasisPositionEquipmentInformationvEqid(String loadingId,Integer positionId,Integer eqId);

    //根据案例阵地人员id查询 人员下的设备
    public List<BasisEquipmentInformationv> findbyloadingIdpositionIduserId(String loadingId, Integer positionId,Integer userId);

    public Integer selectLoadingIdAndEqId(String loadingId,Integer eqId);


}
